package com.net.xpay.alipay.safePay;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 2020/4/25 11:37

 * 安全付支付宝客户端配置常量
 */
@Configuration
@Getter
@Setter
@PropertySource(value = "classpath:/xpay-safe-pay-alipay-config/application-${spring.profiles.active}.properties", encoding="UTF-8")
@ConfigurationProperties(prefix = "xpay.safe-pay")
public class SafePayAlipayProperties {
    //是否启用
    private Boolean enable;

    //请求网关
    public String alipayTopUrl;

    //消息订阅服务器地址
    public String serverHost;

    //应用ID
    public String alipayAppId;

    //应用私钥
    public String appPrivateKey;

    //支付宝CA根证书文件路径（alipay_root_cert_path 文件绝对路径)
    public String rootCertPath;

    //应用公钥证书路径（app_cert_path 文件绝对路径)
    public String certPath;

    //支付宝公钥证书文件路径（alipay_cert_path 文件绝对路径）
    public String alipayPublicCertPath;

    //主体账号
    private String identity;

    //主体账号名称
    private String identityName;
}
